//
//  Person.h
//  05_homeWork
//
//  Created by 402030900@qq.com on 16/7/8.
//  Copyright © 2016年 402030900@qq.com. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Person : NSObject
@property(nonatomic,retain)NSString * name;
@property(nonatomic,assign)NSInteger  age;
@property(nonatomic,retain)NSString * sex;
-(instancetype)initWithName:(NSString *)personName
                        Age:(NSInteger )personAge
                        Sex:(NSString *)personSex;
-(NSComparisonResult)compareNames:(Person *)element;
-(NSComparisonResult)compareAges:(Person *)element;
-(NSComparisonResult)compareSexs:(Person *)element;
@end
